package com.leolian.spring01.autowiring;

public class AutowrieService {
	private AutowireDao dao;
	
	public AutowrieService(AutowireDao dao) {
		this.dao = dao;
	}
	
	public void setDao(AutowireDao dao) {
		this.dao = dao;
	}
	
	public void say(String word){
		System.out.println("service -- "+word);
		dao.say(word);
	}
	
}
